#include <reg52.h>
#include "LCD1602.h"
#include "sd.h"
#include "Delay.h"
#include "uart.h"
unsigned char writeblock[]="20194032237";
unsigned char readblock[20]="";

void main()
{
	TMOD=0x20;
	TH1=0xFD;
	TL1=0xFD;
	TR1=1;
	SCON=0x50;
	
	LCD_Init();
	SD_Init();
	
	SD_Block_W(writeblock,512*7);	
	SD_Block_R(readblock,512*7);
	
	SendStr(readblock);
	LCD_ShowString(1,1,"readblock");
	LCD_ShowString(2,1,readblock);
	while(1);
}	


